#!/usr/bin/env python
# -*- coding: UTF-8 -*-

try:
	import pygame
	import sys
	from pygame.locals import *
	from lib.utils import *
	from random import randint
except ImportError, err:
	print "Could not load %s module." % (err)
	sys.exit(2)

'''
Tile

object to describe each separate tile and relevant details.
'''

class Tile(object):
	"""
	Stores Tile data
	"""

	def __init__(self, x, y, type=1, bonus=0, move=1, flieronly=False):
		self.x = x
		self.y = y

#		self.type = type
#		self.bonus = bonus
		self.type = randint(0, 10)
		self.bonus = randint(-100, 100)
		self.move = randint(1, 2)

		self.flieronly = flieronly


	def get_data(self):
		"""
		Returns all the data held by the tile
		"""
		return (self.x, self.y, self.type, self.bonus, self.move, self.flieronly)
